import React, { Component } from 'react';
import { Switch, Route } from "react-router-dom";

import Main from './containers/main';
import Login from './containers/login';

class App extends Component {

  constructor(props) {
    super(props);
    this.state = {
      logged: true,
    };
  }

  render() {
    const {logged} = this.state;
    return (
      <div>
        {logged ? <Main/> : <Login/>}
      </div>
    );
  }
}

export default App;